package net.randomice.genchk.popup.actions;

import java.util.HashMap;
import java.util.Map;

import org.eclipse.emf.mwe.core.WorkflowRunner;
import org.eclipse.emf.mwe.core.monitor.ProgressMonitor;

public class Generator {

	public static void run(String workflow, String basename,
			String basePackage, String outputDir, ProgressMonitor oawMonitor) {
		WorkflowRunner runner = new WorkflowRunner();
		Map<String, String> properties = new HashMap<String, String>();
		Map<String, ?> slotMap = new HashMap<String, Object>();
		properties.put("model", basename);
		properties.put("outputDir", outputDir);
		properties.put("basePackage", basePackage);
		runner.run(workflow, oawMonitor, properties, slotMap);
	}

}
